package com.drag;


import com.selectable.XPanel;

import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.event.*;

public class DragFrame2 extends JFrame {
    public XPanel paintPanel;
    public DragFrame2(){
        super("drag build2");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocation(new Point(500,200));
        setSize(800+16,600+39);
        setPreferredSize(new Dimension(800,600));
        setLayout(null);
        paintPanel = new XPanel();
        paintPanel.setSize(800,600);
        paintPanel.setPreferredSize(new Dimension(800,600));
        add(paintPanel);
    }


    public static void main(String[] args) {
        DragFrame2 df = new DragFrame2();
        df.setVisible(true);
    }
}

